package com.bishe.demo.modules.ticket.entity;

import com.bishe.demo.modules.common.entity.City;
import com.bishe.demo.modules.common.entity.TimeTable;

import java.util.List;

public class TicketSite {
    private int tickSiteId;
    private int sMId;
    private int fkCityId;
    private City startCity;
    private int fkTimeId;
    private TimeTable timeTable;
    private int ticketNum;
    private float ticketPrice;
    private List<City> cities;

    public TicketSite(int tickSiteId, int sMId, int fkCityId, int fkTimeId, int ticketNum, float ticketPrice, List<City> cities) {
        this.tickSiteId = tickSiteId;
        this.sMId = sMId;
        this.fkCityId = fkCityId;
        this.fkTimeId = fkTimeId;
        this.ticketNum = ticketNum;
        this.ticketPrice = ticketPrice;
        this.cities = cities;
    }

    public TicketSite() {
    }

    public int getTickSiteId() {
        return tickSiteId;
    }

    public void setTickSiteId(int tickSiteId) {
        this.tickSiteId = tickSiteId;
    }

    public int getsMId() {
        return sMId;
    }

    public void setsMId(int sMId) {
        this.sMId = sMId;
    }

    public int getFkCityId() {
        return fkCityId;
    }

    public void setFkCityId(int fkCityId) {
        this.fkCityId = fkCityId;
    }

    public int getFkTimeId() {
        return fkTimeId;
    }

    public void setFkTimeId(int fkTimeId) {
        this.fkTimeId = fkTimeId;
    }

    public int getTicketNum() {
        return ticketNum;
    }

    public void setTicketNum(int ticketNum) {
        this.ticketNum = ticketNum;
    }

    public float getTicketPrice() {
        return ticketPrice;
    }

    public City getStartCity() {
        return startCity;
    }

    public void setStartCity(City startCity) {
        this.startCity = startCity;
    }

    public TimeTable getTimeTable() {
        return timeTable;
    }

    public void setTimeTable(TimeTable timeTable) {
        this.timeTable = timeTable;
    }

    public void setTicketPrice(float ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    public List<City> getCities() {
        return cities;
    }

    public void setCities(List<City> cities) {
        this.cities = cities;
    }

    @Override
    public String toString() {
        return "TicketSite{" +
                "tickSiteId=" + tickSiteId +
                ", sMId=" + sMId +
                ", fkCityId=" + fkCityId +
                ", fkTimeId=" + fkTimeId +
                ", ticketNum=" + ticketNum +
                ", ticketPrice=" + ticketPrice +
                ", cities=" + cities +
                '}';
    }
}
